#ifndef CUBERPROXY_H
#define CUBERPROXY_H
class CCuber;
class CCuberProxy{
  public:
	static const char* CuberConnTypeTcp;
	static const char* CuberConnTypeUdp;
	static const char* CuberConnTypeP4p;
	CCuberProxy(CCuber* cuber);
	~CCuberProxy();
	//my api
	CCuberProxy* Connect(const char* parameters);
	void Disconnect(void);
	int GetLastError();
	int SearchDevices(char *CommType,char *Address, char *Buffer,int *BufferLength);
	int GetLockCount();
	int SetLockState(int lock_no,int opentime);
	int GetLockState(int lock_no);
    int GetComPwd(char *buffer, int *BufferLen);
	int MobileAtt(int operate, char *premeters, char *Buffer,int *BufferLength);
	int GetDeviceParam(char *Buffer, int Bufferlen, char *Item);
	int SetDeviceParam(char *ItemandValues);
	int SetDownloadProcessCallBack(void *pCallBackFun);

	int ResetDeviceExt(char *parameters);
  
  private:
  	CCuber* mActiveCuber;
	UDK_HANDLE myhandle;
  	CCuberProxy();
};
#endif
